﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
#include<unordered_map>
#include<queue>
#include<stack>
#include <functional>
#include<queue>
#include <memory>
using namespace std;

int main() {
    string s;
    cin >> s;
    int len = s.size();
    bool flag = true;
    string ret;
    for (int i = 0; i < len; i++) {
        int num = s[i] - '0';
        if (num % 2 == 0) num = 0;
        else num = 1;
        if (flag && num == 0)
        {
            if (i == len - 1) ret += '0';
            continue;
        }
        else {
            ret += num + '0';
            flag = false;
        }
    }
    cout << ret;
    return 0;
}